package com.hzj.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzj.pojo.VoteOption;
import com.hzj.pojo.VoteSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hzj
 * @since 2021-03-19
 */
public interface VoteSubjectService extends IService<VoteSubject> {
    Page showAll(int pageIndex, int paheSize, String title);
    IPage<Map<String, Object>> showCount(Page page,String title);
    boolean addSubjectAndOption(VoteSubject voteSubject,List<VoteOption> list);
    Map<String,Object> checkSubject(int id);
}
